from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from homes import models
from goods import models
class CategorySerializer(ModelSerializer):
    """
    商品分类序列化器
    """
    class Meta:
        model = models.Category
        fields = '__all__'


class GoodsSerializer(ModelSerializer):

    class Meta:
        model = models.Goods
        fields = '__all__'
